package com.xiaoxx.model.entity.coin;

import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;

import com.xiaoxx.common.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author HX
 * @since 2024-12-09
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_binance_order")
@ApiModel(value="BinanceOder对象", description="")
public class BinanceOrder extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;


    @ApiModelProperty(value = "用户id")
    @TableField("user_id")
    private String userId;

    @ApiModelProperty(value = "交易对")
    @TableField("symbol")
    private String symbol;

    @ApiModelProperty(value = "币安系统订单号")
    @TableField("binance_order_id")
    private Long binanceOrderId;

    @ApiModelProperty(value = "成交金额")
    @TableField("cum_quote")
    private String cumQuote;

    @ApiModelProperty(value = "成交量")
    @TableField("executed_qty")
    private String executedQty;

    @ApiModelProperty(value = "下单价格")
    @TableField("orig_qty")
    private String origQty;

    @ApiModelProperty(value = "委托价")
    @TableField("price")
    private String price;

    @ApiModelProperty(value = "买卖方向")
    @TableField("side")
    private String side;

    @ApiModelProperty(value = "持仓方向")
    @TableField("position_side")
    private String positionSide;

    @ApiModelProperty(value = "订单类型")
    @TableField("type")
    private String type;

    @ApiModelProperty(value = "有效方法 GTC, FOK, IOC, GTD")
    @TableField("timeIn_force")
    private String timeinForce;

    @ApiModelProperty(value = "订单状态NEW, PARTIALLY_FILLED, FILLED, CANCELED, REJECTED, EXPIRED")
    @TableField("status")
    private String status;

    @ApiModelProperty(value = "触发时间")
    @TableField("departure_time")
    private LocalDateTime departureTime;

    @ApiModelProperty(value = "利润")
    @TableField("profit")
    private String profit;

    private Integer deleted;


}
